using System;
using digit.Core;
using System.Data;

namespace SMS.MediaManager
{
	public class TypeInfo
	{
		#region CONSTRUCTORS
		public TypeInfo()
		{
		
			this.m_typeID = Util.NULL_INT;
			this.m_typeName = Util.NULL_STRING;
			this.m_description = Util.NULL_STRING;
		}
		public TypeInfo( int typeID,  string typeName,  string description)
		{
		
			this.m_typeID = typeID;
			this.m_typeName = typeName;
			this.m_description = description;
		}
		public TypeInfo( DataRow dRow)
		{
		
			this.m_typeID = (int) Util.ReplaceDBNullTo(dRow["typeID"], Util.NULL_INT);
			this.m_typeName = Util.ReplaceDBNullTo(dRow["typeName"], Util.NULL_STRING).ToString();
			this.m_description = Util.ReplaceDBNullTo(dRow["description"], Util.NULL_STRING).ToString();
		}
		#endregion
		
		#region ATTRIBUTES
		private int m_typeID;
		private string m_typeName;
		private string m_description;
		#endregion
		
		#region PROPERTIES
		public int TypeID
		{
			get
			{
				return this.m_typeID;
			}
			set
			{
				this.m_typeID = value;
			}
		}
		
		public string TypeName
		{
			get
			{
				return this.m_typeName;
			}
			set
			{
				this.m_typeName = value;
			}
		}
		
		public string Description
		{
			get
			{
				return this.m_description;
			}
			set
			{
				this.m_description = value;
			}
		}
		
		#endregion
		
	}
}